package com.carkeeper.discover.mapper;

import com.carkeeper.pojo.BlogCategory;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.common.Mapper;

public interface BlogCategoryMapper extends Mapper<BlogCategory> {
    /**
     * 根据名称查id
     * @param categoryName
     * @return
     */
    @Select("select id from tb_blog_category where name=#{categoryName}")
    Integer findIdByName(String categoryName);
}
